package field_method05;

public class User {
    String userName;

    String password;

    public boolean login(String userNameparam,String passswordparam){
        System.out.println("传递过来的用户名"+userNameparam);
        System.out.println("传递过来的密码"+passswordparam);
        if (userNameparam.equals("admin") && passswordparam.equals("123456")){
            return true;
        }else {
            return false;
        }
    }
}
